package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.common.Response;
import com.example.demo.service.CmsFoodService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "餐饮服务管理")
@RestController
@RequestMapping("/food")
public class CmsFoodController {
	@Autowired
	CmsFoodService foodService;
	
	@ApiOperation(value = "员工采购")
	@PostMapping("/buy")
	public Response<String> buy(String id){   	 
    	foodService.caigou(id);
    	return Response.ok("success");
 		 
    	 }
		
    }

